package net.codeyouth.codegen.util

import org.slf4j.Logger
import org.slf4j.LoggerFactory

/**
 * @author Frank create on 16/2/20 21:58
 */
class PropUtil {

    private static final LOGGER = LoggerFactory.getLogger(PropUtil.class)

    static Properties props

    static Properties load(String fileName) {
        InputStream stream = PropUtil.class.classLoader.getResourceAsStream(fileName)
        props = new Properties()
        props.load(stream)
        return props
    }
}
